<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>分类管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<table style="width: 1024px;" align="center">
	<tr>
		<td><s:include value="/admincommon/header.jsp" />
		<hr>
		<s:actionmessage/>
		<s:actionerror/>
		<hr>
		<table>
			<tr>
				<th style="text-align: left;">分类管理</th>
			</tr>
			<tr>
				<td style="text-align: center;">分类ID:</td>
				<td style="text-align: center;">分类名:</td>
			</tr>
			<s:iterator value="categorys">
				<tr>
					<td><s:property value="id" /></td>
					<td><s:property value="categoryName" /></td>
					<td>
						<s:form action="/category/%{id}" theme="simple">
							<s:hidden value="delete" name="_method"/>
							<s:submit value="删除"/>
						</s:form>
					</td>
				</tr>
			</s:iterator>
			<tr>
				<td colspan="2"><s:form action="/category" theme="simple">
					<s:textfield key="categoryName" label="分类名称:"/> <s:submit value="新增分类" />
				</s:form></td>
			</tr>
		</table>
		<hr>
		<s:include value="/admincommon/footer.jsp" /></td>
	</tr>
</table>
</body>
</html>